package com.gexiaobao.pigeon.app.model.bean

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

/**
 * @Author      : hxw
 * @Date        : 2024/3/26 9:31
 * @Describe    :
 */
@Parcelize
class MallShopListResponse(

    var total: Int = 0,
    var list: ArrayList<ListBean> = ArrayList(),

    ) : Parcelable {

    /**
     * 数据是否为空
     */
    fun isEmpty() = list == null || (list as List<*>).isEmpty()

    @Parcelize
    class ListBean(

        var goodList: ArrayList<GoodListBean> = ArrayList(),
        var isSale: Boolean = false,
        var score: Int = 0,
        var shopId: Int = 0,
        var shopName: String = "",
        var shopPicUrl: String = "",

    ) : Parcelable {

        /**
         * 数据是否为空
         */
        fun isEmpty() = goodList == null || (goodList as List<*>).isEmpty()

        @Parcelize
        class GoodListBean(

            var goodId: Int = 0,
            var goodImg: String = "",
            var salePrice: Double = 0.00

        ) : Parcelable

    }

}